package com.atguigu.springcloud.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
//全参
@AllArgsConstructor
//空参
@NoArgsConstructor
public class CommonResult<T> {
    private Integer code;
    private String message;
    //传过来的实体类  如Payment 的全部属性都能传过去 json串
    private T       data;

    public CommonResult(Integer code,String message){
        this(code,message,null);
    }

}
